class Outclass3{

    public int a=10;
    public void func()
    {
        //局部内部类
        class Innerclass
        {
            public void test()
            {
                System.out.println("hello!");
            }
        }
        Innerclass innerclass=new Innerclass();
        innerclass.test();
    }
}
public class Test3 {
    public static void main(String[] args) {
        Outclass3 outclass3=new Outclass3();
        outclass3.func();
    }
}
